<?php $this->load->view('home/layout/header') ?>
<div class="widthMax beizhu-text">
    <?php if ($advert->num_rows() > 0):?>
        <div class="am-slider am-slider-default beizhu-home" data-am-slider='{}' data-am-flexslider="{playAfterPaused:500}" data-am-widget="slider">
            <ul class="am-slides">
               <?php foreach ($advert->result() as $val):?>
                  <li>
                      <a href="<?php echo $val->openvar;?>">
                          <img src=<?php echo $this->config->show_image_url($val->picture)?> />
                      </a>
                  </li>
               <?php endforeach;?>
            </ul>
            <?php if (!strpos($_SERVER['HTTP_USER_AGENT'], 'eiZ_Wap/ECCF3EFE2A3E11DAED68A4F63B8E2D14')) :?>
            <div class="am-alert beizhu-alert" data-am-alert>
                <button type="button" class="am-close">&times;</button>
                <a href="<?php echo $this->config->www_base_url.'wap/scenic/wap_index/wap_download';?>" class="client"><i class="iconfont">&#xe612;</i>下载客户端</a>
            </div>
            <?php endif;?>
        </div>
    <?php endif;?>
    <div class="beizhu-section">
        <?php if (!$this->uid) :?>
            <div class="beizhu-banner am-cf">
                <div class="beizhu-brao">
                    <p>高品质吃喝玩乐<br/>你想要的都在这里</p>
                    <?php if ($weixin) :?>
                    <div class="beizhu-eeve braoing">
                        <a class="eeve-close" href="http://mp.weixin.qq.com/s?__biz=MzA4OTY3NDUxMQ==&mid=213896060&idx=1&sn=4f0567f7536256f5f29fa41f96b22c94&scene=0#rd">关注微信</a>
                        <div class="eeve-open">
                            <i class="iconfont icon-youjiantou"></i>
                        </div>
                        <div class="eite-close">
                            <i class="iconfont icon-youjiantou"></i>
                        </div>
                    </div>
                    <script type="text/javascript">
                        $(function (){
                            var status='click';
                            $('.beizhu-banner').on(status,'.beizhu-brao,.eeve-open',function(event){
                                $('.beizhu-eeve').addClass('braoing');
                                event.stopPropagation();
                            });
                            $('.beizhu-eeve').on(status,'.eite-close',function(event){
                                $('.beizhu-eeve').removeClass('braoing');
                                event.stopPropagation();
                            });
                        });
                    </script>
                    <?php endif;?>
                </div>
                <a href="<?php echo site_url('login/login/index'); ?>">注册</a>
                <a href="<?php echo site_url('login/login/index'); ?>">登录</a>
            </div>
        <?php elseif ($weixin) : ?>
            <div class="beizhu-banner succeed am-cf">
                <div class="beizhu-brao">
                   <p>高品质吃喝玩乐,你想要的都在这里!</p>
                </div>
                <a href="http://mp.weixin.qq.com/s?__biz=MzA4OTY3NDUxMQ==&mid=213896060&idx=1&sn=4f0567f7536256f5f29fa41f96b22c94&scene=0#rd">关注微信</a>
            </div>
        <?php endif;?>
        <ul class="beizhu-scase am-cf">
            <li>
                <a href="<?php echo site_url('tourism/tourism');?>">
                    <h4>商城</h4>
                    <p>要疯狂◎就彻底</p>
                    <div class="beizhu-marin">
                        <img src="/skins/home/images/bin1.png">
                    </div>
                </a>
                <!-- <div class="beizhu-prom">国庆<br />大促</div> -->
            </li>
            <li>
                <a href="<?php echo site_url('scenic/home/index');?>">
                    <h4>景区</h4>
                    <p>轻松出游◎惠相随</p>
                    <img src="/skins/home/images/bin.png">
                </a>
            </li>
            <li>
                <a href="<?php echo $this->config->www_base_url.'wap/hotel/wap_hotel.html';?>">
                    <h4>酒店</h4>
                    <p>走哪儿◎住哪儿</p>
                    <img src="/skins/home/images/bin2.png">
                </a>
            </li>
            <li>
                <a href="<?php echo $this->config->zzdy_url.'zzdy/zzdy/index';?>">
                    <h4>1广场</h4>
                    <div class="beizhu-marin">
                        <img src="/skins/home/images/bin3.png">
                    </div>
                </a>
            </li>
            <li>
                <a href="<?php echo $this->config->zzdy_url.'zzdy/autoguide/autoGuide';?>">
                    <h4>自助导游</h4>
                    <div class="beizhu-marin">
                        <img src="/skins/home/images/bin4.png">
                    </div>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('line/account/grid');?>">
                    <h4>旅游度假</h4>
                    <div class="beizhu-marin">
                        <img src="/skins/home/images/bin5.png">
                    </div>
                </a>
            </li>
        </ul>
    </div>
    <div class="am-footer am-footer-default">
        <div class="am-footer-switch">
            <span class="am-footer-ysp">云适配版</span>
            <span class="am-footer-divider"> | </span>
            <a class="am-footer-desktop" href="<?php echo $this->config->jingqu_url;?>">电脑版</a>
        </div>
    </div>
</div>
<div class="user-foot">
    <ul class="flex">
        <li class="active">
            <a href="<?php echo site_url();?>">
                <i class="iconfont">&#xe649;</i>
                <p>首页</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('home/discountMall/protection'); ?>">
                <i class="iconfont">&#xe65b;</i>
                <p>消费保障</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('tourism/tourismcart'); ?>">
                <i class="iconfont">&#xe654;</i>
                <p>购物车</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('home/ucenter/index');?>">
                <i class="iconfont">&#xe616;</i>
                <p>我的</p>
            </a>
        </li>
    </ul>
</div>
<?php $this->load->view('home/layout/footer') ?>